package com.shopcart.service;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import com.shopcart.domain.StoreGoodsCategory;


public interface StoreGoodsCategoryService {
	
	Collection<StoreGoodsCategory> findByStoreId(String storeId,Sort sort);
	
	Page<StoreGoodsCategory> findByStoreId(String storeId,Pageable p);
	
	void delWithGoods(String storeId,String id);
	
	int updateByPrimaryKeySelective(StoreGoodsCategory cate);
	
	void save(StoreGoodsCategory cate);
	
	StoreGoodsCategory findById(String id);
	
}
